package com.cm386.final_project_timezonealert.view;

import java.util.HashMap;

import android.graphics.Bitmap;

public class SelectedCityItem  extends HashMap<String, Object>{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public final static String CITY_NAME_KEY = "CITY_NAME";
	public final static String TIME_ZONE_KEY = "TIME_ZONE";
	public final static String HOUR_KEY	     = "HOUR";
	public final static String COLON_KEY     = "COLON";
	public final static String MINUTES_KEY	 = "MINUTES";
	public final static String WEATHER_ICON_KEY	 = "WEATHER_ICON";
	public final static String TEMPERATURE_KEY = "TEMPERATUR"; 
	public final static String DAY_NIGHT_LABEL_KEY = "DAY_NIGHT_LABEL"; 
	
	private String cityName;  //example: "Hong_Kong"
	private String timeZone;  //example: "+08:00"
	private String hour;	  //example: "00" (00~23)
	private String colon;	  //example: ":"
	private String minutes;	  //example: "00" (00~59)
	private Bitmap weatherIcon;
	private String temperature;
	private String dayNightLabel;

	public SelectedCityItem(String cityName, String timeZone, String hour,
			String colon, String minutes, Bitmap weatherIcon, String temperature, String dayNightLabel) {
		super();
		this.cityName = cityName;
		this.timeZone = timeZone;
		this.hour = hour;
		this.colon = colon;
		this.minutes = minutes;
		this.weatherIcon = weatherIcon;
		this.temperature = temperature;
		this.dayNightLabel = dayNightLabel;
		
		put(CITY_NAME_KEY, cityName);
		put(TIME_ZONE_KEY, timeZone);
		put(HOUR_KEY, hour);
		put(MINUTES_KEY, minutes);
		put(COLON_KEY, colon);
		put(WEATHER_ICON_KEY, weatherIcon);
		put(TEMPERATURE_KEY, temperature);
		put(DAY_NIGHT_LABEL_KEY, dayNightLabel);
	}
	
	public String getCityName() {
		return (String) get(CITY_NAME_KEY);
	}
	public void setCityName(String cityName) {
		this.cityName = cityName;
		put(CITY_NAME_KEY, cityName);
	}
	public String getTimeZone() {
		return (String) get(TIME_ZONE_KEY);
	}
	public void setTimeZone(String timeZone) {
		this.timeZone = timeZone;
		put(TIME_ZONE_KEY, timeZone);
	}
	public String getHour() {
		return (String) get(HOUR_KEY);
	}
	public void setHour(String hour) {
		this.hour = hour;
		put(HOUR_KEY, hour);
	}
	public String getColon() {
		return (String) get(COLON_KEY);
	}
	public void setColon(String colon) {
		this.colon = colon;
		put(COLON_KEY, colon);
	}
	public String getMinutes() {
		return (String) get(MINUTES_KEY);
	}
	public void setMinutes(String minutes) {
		this.minutes = minutes;
		put(MINUTES_KEY, minutes);
	}
	public Bitmap getWeatherIcon() {
		return (Bitmap) get(WEATHER_ICON_KEY);
	}
	public void setWeatherIcon(Bitmap weatherIcon) {
		this.weatherIcon = weatherIcon;
		put(WEATHER_ICON_KEY, weatherIcon);
	}
	public String getTemperature() {
		return (String) get(TEMPERATURE_KEY);
	}
	public void setTemperature(String temperature) {
		this.temperature = temperature;
		put(TEMPERATURE_KEY, temperature);
	}
	public String getDayNightLabel() {
		return (String) get(DAY_NIGHT_LABEL_KEY);
	}
	public void setDayNightLabel(String dayNightLabel) {
		this.dayNightLabel = dayNightLabel;
		put(DAY_NIGHT_LABEL_KEY, dayNightLabel);
	}
	
}
